import instance from "./request";
//接口数据
export let http_getshoplist=()=>{
    return instance.get('/shoplist')
}
//添加
export let http_addshoplist=(obj:string)=>{
    return instance.post('/shoplist',obj)
}
//编辑
export let http_editshoplist=(obj:string)=>{
    return instance.patch(`/shoplist/${obj.id}`,obj)
}
//删除
export let http_delshoplist=(id:string)=>{
    return instance.delete(`/shoplist/${id}`,id)
}
//搜索参数名称
export let http_searchname=(name:string)=>{
    return instance.get('/shoplist',{params:{name:name}})
}
//搜索参数键名keyname
export let http_searchkeyname=(keyname:string)=>{
    return instance.get('/shoplist',{params:{keyname_like:keyname}})
}

//搜索状态
export  let http_searcgCollect=(Collect:string)=>{
     return instance.get('/shoplist',{params:{Collect:Collect}})
}